﻿/**
 *	html/monitor/center/title/panel_title.js
 *
 *	(C) 2014 Yuanjj
 *
 * 	history:
 * 		2014-07-15		create the file
 */

/**
 *	create title panel
 *
 *	@panel_center		[in] the center panel object
 *	@showflag			[in] the show flag ( "show" or "hide" )
 *
 *	return
 *		void
 */
function create_title_panel( panel_center, showflag )
{
    var panel = new Ext.toolbar.Toolbar
    ({
         id:"panel_c_title",
         height:35,
         width:"100%"
    });

    if ( "show" === showflag )
        panel.show();
    else
        panel.hide();

    panel_center.add_subpanel( panel );
}
